<template>
  <div>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="columnA" label="所在省份"> </el-table-column>
      <el-table-column prop="columnB" label="赠费用户数量"> </el-table-column>
      <el-table-column prop="columnC" label="退费用户数量"> </el-table-column>
      <el-table-column prop="columnD" label="所属月份"> </el-table-column>
    </el-table>
    <Pagination :total="tableData.length" />
  </div>
</template>

<script>
import Pagination from '@/components/Pagination'
export default {
  components: {
    Pagination
  },

  data() {
    return {
      tableData: [
        {
          columnA: '广州',
          columnB: this.$basefn.randomNum(10000, 30000, 0),
          columnC: this.$basefn.randomNum(10000, 30000, 0),
          columnD: '2020年2月'
        },
        {
          columnA: '深圳',
          columnB: this.$basefn.randomNum(10000, 30000, 0),
          columnC: this.$basefn.randomNum(10000, 30000, 0),
          columnD: '2020年4月'
        },
        {
          columnA: '四川',
          columnB: this.$basefn.randomNum(10000, 30000, 0),
          columnC: this.$basefn.randomNum(10000, 30000, 0),
          columnD: '2020年1月'
        },
        {
          columnA: '上海',
          columnB: this.$basefn.randomNum(10000, 30000, 0),
          columnC: this.$basefn.randomNum(10000, 30000, 0),
          columnD: '2020年3月'
        },
        {
          columnA: '上海',
          columnB: this.$basefn.randomNum(10000, 30000, 0),
          columnC: this.$basefn.randomNum(10000, 30000, 0),
          columnD: '2020年4月'
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.pagination {
  float: right;
  margin: 10px;
}
</style>
